package com.czr.dto;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 帖子表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="czr_post对象", description="帖子")
public class CzrPostFbParam extends Model<CzrPostFbParam> {

    @ApiModelProperty(value = "帖子标题")
    @NotEmpty(message = "帖子标题不能为空！")
    @TableField("title")
    private String title;
    @ApiModelProperty(value = "帖子正文")
    @NotEmpty(message = "帖子正文不能为空！")
    @TableField("content")
    private String content;


    @ApiModelProperty(value = "图片名称(多个图片已json形式传)")
    @TableField(exist = false)
    private JSONArray imageName;

    @ApiModelProperty(value = "栏目id")
    @TableField("columnId")
    private Integer columnId;

    @ApiModelProperty(value = "缩略图")
    @TableField("thumbnail")
    private String thumbnail;

}
